package xuQiuGenGai.impl;

import xuQiuGenGai.Apple;
import xuQiuGenGai.AppleAttribute;

/**
 * @AppleGreenColor: 以颜色 筛选
 * @author: ZBoHang
 * @time: 2021/9/17 9:24
 */
public class AppleGreenColor implements AppleAttribute {
    @Override
    public boolean test(Apple apple) {
        return "green".equals(apple.getColor());
    }
}
